import { Injectable } from '@angular/core';
import {ReplaySubject} from 'rxjs';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import {BaseUrl} from './common/api'


@Injectable()
export class GetDatasetlistService {
    public url=BaseUrl.getdataMenuUrl;
    public current: ReplaySubject<any> = new ReplaySubject<any>( 1 );
    public default: any = {
      right_part: 'Anything you want',
      left_part: `<strong>Copyright &copy; 2016 <a href="#" routerLink="/">Company X</a>.
    	</strong> All rights reserved.`
    }

    constructor(private http:HttpClient) {

    }

    /* Redefine the footer html */
    get (){
       return this.http.get(this.url)
    }
}